program example
use polymorphic_complextaylor
implicit none 
integer no,nv,i
type(complextaylor) f,g
complex(dp) c,cc

no=4; nv= 2;  ! no: the order of the polynomial    nv: the number of variables
call init(no,nv)  ! initializes taylor series without maps

call alloc(f,g)      ! must be constructed after init

i=3
c=cmplx(5.d0,-1.4d0,kind=dp)
cc=cmplx(6.d0,1.6d0,kind=dp)  

f=(c.mono.'10') + (c.mono.'11') + (cc.mono.'21') + 3.d0                   !<-----------------   3.d0 added
  ! Creates (5.d0 x_1- 1.4d0 i* x_1) + (5.d0 x_1 x_2 - 1.4d0 i* x_1 x_2) + (6.d0 x_1^2 x_2+ 1.6d0 i*  x_1^2 x_2)
g=f.cut.i        !  Creates  (5.d0 x_1- 1.4d0 i* x_1) + (5.d0 x_1 x_2 - 1.4d0 i* x_1 x_2) + 3.d0

call print(f,6)
call print(g,6)


call kill(f,g)      ! must be destroyed
end program example